package com.second.app.thread.reentrant.conditioncorrect;

/**
 * @author gyz
 * @date 2021/2/1 15:40
 */
public class MyThread extends Thread {

    private ReentrantLockConfig reentrantLockConfig;

    public MyThread(ReentrantLockConfig reentrantLockConfig) {
      this.reentrantLockConfig = reentrantLockConfig;
    }

    @Override
    public void run() {
        reentrantLockConfig.await();
    }
}
